package com.jake.rabbitbootdemo.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"jake.topic.queue.single"})
public class TopicSingleMatchConsumer {

    @RabbitHandler
    public void process(String msg) {
        System.out.println(this.getClass().getSimpleName() + ":" + msg);
    }

}
